import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control

import ZkTable from 'vue-table-with-tree-grid'

import VueQuillEditor from 'vue-quill-editor'

import {hasPermissions} from "@/hasPermissions";
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor /* { default global options } */)

Vue.use(ElementUI)
Vue.component('tree-table', ZkTable)

// 全局注册权限校验
Vue.prototype.hasPerm = hasPermissions

Vue.config.productionTip = false

const app = new Vue({
  el: '#app',
  router,
  store,
  render: (h) => h(App)
})
